import unittest
from parameterized import parameterized
from tools import login
from login测试 import data


class TestLogin(unittest.TestCase):
    @parameterized.expand(data())
    def test_01(self, username, password, expect):
        print(f"username:{username},password:{password},expect:{expect}")
        self.assertEqual(expect, login(username, password))


# if __name__ == '__main__':
#     unittest.main()
